package com.lipeng.bean;

import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public class Shop {
    private Integer sid;

    private String sname;

    private String sintro;

    private String spic;

    private Integer sprice;

    private MultipartFile file;

    private List<Collect> collectList;

    private boolean isCollect;

    public Shop(){
    }

    @Override
    public String toString() {
        return "Shop{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", sintro='" + sintro + '\'' +
                ", spic='" + spic + '\'' +
                ", sprice=" + sprice +
                ", file=" + file +
                ", collectList=" + collectList +
                ", isCollect=" + isCollect +
                '}';
    }

    public boolean getIsCollect() {
        return isCollect;
    }

    public void setIsCollect(boolean collect) {
        isCollect = collect;
    }

    public Shop(Integer sid, String sname, String sintro, String spic, Integer sprice, MultipartFile file, List<Collect> collectList, boolean isCollect) {
        this.sid = sid;
        this.sname = sname;
        this.sintro = sintro;
        this.spic = spic;
        this.sprice = sprice;
        this.file = file;
        this.collectList = collectList;
        this.isCollect = isCollect;
    }

    public List<Collect> getCollectList() {
        return collectList;
    }

    public void setCollectList(List<Collect> collectList) {
        this.collectList = collectList;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname == null ? null : sname.trim();
    }

    public String getSintro() {
        return sintro;
    }

    public void setSintro(String sintro) {
        this.sintro = sintro == null ? null : sintro.trim();
    }

    public String getSpic() {
        return spic;
    }

    public void setSpic(String spic) {
        this.spic = spic == null ? null : spic.trim();
    }

    public Integer getSprice() {
        return sprice;
    }

    public void setSprice(Integer sprice) {
        this.sprice = sprice;
    }
}